import time
import threading
def sing(msg):
    while True:
        print(msg)
        time.sleep(1)

def dance(msg):
        while True:
            print(msg)
            time.sleep(1)

if __name__ == '__main__':
    # 创建一个唱歌进程
    sing_thread = threading.Thread(target=sing,args=("我在唱歌，啊啦啦啦啦",))
    # 创建一个跳舞进程

    dance_thread = threading.Thread(target=dance,kwargs = {"msg":"我在跳舞，........"})
    sing_thread.start()
    dance_thread.start() # 开始进程